package projectmanagerapp

class Risk {

	String name
	String status
	String priority
	
	static belongsTo = [project : Project]
	
	String toString() {
		"${name} "
		
	
	}
	
    static constraints = {
		
		
		name(unique:true, blank:false)
		priority(inList:["Low","Medium","High"], blank:false)
		status(inList:["Inactive","Active","Closed"], blank:false)
		project(blank:false)
    }
}
